package com.example.onlinemonitoring.model;

import com.example.onlinemonitoring.model.common.sensor;
import java.util.Date;
import javax.persistence.*;

public class Pdmshistory extends sensor {
    @Id
    private Long id;

    private Integer stationid;

    private Integer devicegroup;

    private Integer deviceaddr;

    private String pointname;

    /**
     * 通道号
     */
    @Column(name = "Channel")
    private Integer channel;

    /**
     * 放电量-
     */
    private Float Chargeamount;

    /**
     * 放电次数-
     */
    private Integer chargecount;

    private Float phase;

    private Integer chargeamountalarmstatus;

    private Integer chargecountalarmstatus;

    private Date datatime;

    private Integer communicationstatus;

    private Integer alarmlevel;

    private String alarmmessage;

    /**
     * 备注信息。
     */
    private String memo;

    /**
     * 字段的显示和隐藏
     */
    private String style;

    /**
     * 值为0为投用,值为1已投用
     */
    private Integer inuse;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return stationid
     */
    public Integer getStationid() {
        return stationid;
    }

    /**
     * @param stationid
     */
    public void setStationid(Integer stationid) {
        this.stationid = stationid;
    }

    /**
     * @return devicegroup
     */
    public Integer getDevicegroup() {
        return devicegroup;
    }

    /**
     * @param devicegroup
     */
    public void setDevicegroup(Integer devicegroup) {
        this.devicegroup = devicegroup;
    }

    /**
     * @return deviceaddr
     */
    public Integer getDeviceaddr() {
        return deviceaddr;
    }

    /**
     * @param deviceaddr
     */
    public void setDeviceaddr(Integer deviceaddr) {
        this.deviceaddr = deviceaddr;
    }

    /**
     * @return pointname
     */
    public String getPointname() {
        return pointname;
    }

    /**
     * @param pointname
     */
    public void setPointname(String pointname) {
        this.pointname = pointname;
    }

    /**
     * 获取通道号
     *
     * @return Channel - 通道号
     */
    public Integer getChannel() {
        return channel;
    }

    /**
     * 设置通道号
     *
     * @param channel 通道号
     */
    public void setChannel(Integer channel) {
        this.channel = channel;
    }

    /**
     * 获取放电量-
     *
     * @return Chargeamount - 放电量-
     */
    public Float getChargeamount() {
        return Chargeamount;
    }

    /**
     * 设置放电量-
     *
     * @param Chargeamount 放电量-
     */
    public void setChargeamount(Float Chargeamount) {
        this.Chargeamount = Chargeamount;
    }

    /**
     * 获取放电次数-
     *
     * @return chargecount - 放电次数-
     */
    public Integer getChargecount() {
        return chargecount;
    }

    /**
     * 设置放电次数-
     *
     * @param chargecount 放电次数-
     */
    public void setChargecount(Integer chargecount) {
        this.chargecount = chargecount;
    }

    /**
     * 获取放电量-
     *
     * @return phase - 相位-
     */
    public Float getphase() {
        return phase;
    }

    /**
     * 设置放电量-
     *
     * @param phase 相位-
     */
    public void setphase(Float phase) {
        this.phase = phase;
    }
    
    public Integer getchargecountalarmstatus() {
        return chargecountalarmstatus;
    }

    public void setchargecountalarmstatus(Integer chargecountalarmstatus) {
        this.chargecountalarmstatus = chargecountalarmstatus;
    }

    
    public Integer getchargeamountalarmstatus() {
        return chargeamountalarmstatus;
    }

    public void setchargeamountalarmstatus(Integer chargeamountalarmstatus) {
        this.chargeamountalarmstatus = chargeamountalarmstatus;
    }

    /**
     * @return datatime
     */
    public Date getDatatime() {
        return datatime;
    }

    /**
     * @param datatime
     */
    public void setDatatime(Date datatime) {
        this.datatime = datatime;
    }

    /**
     * @return communicationstatus
     */
    public Integer getCommunicationstatus() {
        return communicationstatus;
    }

    /**
     * @param communicationstatus
     */
    public void setCommunicationstatus(Integer communicationstatus) {
        this.communicationstatus = communicationstatus;
    }

    /**
     * @return alarmlevel
     */
    public Integer getAlarmlevel() {
        return alarmlevel;
    }

    /**
     * @param alarmlevel
     */
    public void setAlarmlevel(Integer alarmlevel) {
        this.alarmlevel = alarmlevel;
    }

    /**
     * @return alarmmessage
     */
    public String getAlarmmessage() {
        return alarmmessage;
    }

    /**
     * @param alarmmessage
     */
    public void setAlarmmessage(String alarmmessage) {
        this.alarmmessage = alarmmessage;
    }

    /**
     * 获取备注信息。
     *
     * @return memo - 备注信息。
     */
    public String getMemo() {
        return memo;
    }

    /**
     * 设置备注信息。
     *
     * @param memo 备注信息。
     */
    public void setMemo(String memo) {
        this.memo = memo;
    }

    /**
     * 获取字段的显示和隐藏
     *
     * @return style - 字段的显示和隐藏
     */
    public String getStyle() {
        return style;
    }

    /**
     * 设置字段的显示和隐藏
     *
     * @param style 字段的显示和隐藏
     */
    public void setStyle(String style) {
        this.style = style;
    }

    /**
     * 获取值为0为投用,值为1已投用
     *
     * @return inuse - 值为0为投用,值为1已投用
     */
    public Integer getInuse() {
        return inuse;
    }

    /**
     * 设置值为0为投用,值为1已投用
     *
     * @param inuse 值为0为投用,值为1已投用
     */
    public void setInuse(Integer inuse) {
        this.inuse = inuse;
    }
}